home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST8-7.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  310b  |  19 lines

  1. ;
  2. ; *** Listing 8-7 ***
  3. ;
  4. ; Initializes a variable to 0 via a register-register SUB,
  5. ; followed by the accumulator-specific form of MOV to a
  6. ; direct-addressed operand.
  7. ;
  8.     jmp    Skip
  9. ;
  10. InitialValue    dw    ?
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     sub    ax,ax
  16.     mov    [InitialValue],ax
  17.     endm
  18.     call    ZTimerOff
  19.